

import React from 'react'

type Props = {}

const Hoc = (props: Props) => {
  return (
    <div>Hoc</div>
  )
}

export default Hoc
// import React from 'react'
// import {Navigate} from "react-router-dom"
// type Props = {}

// const Hoc = (Com:any) => {
//   return (props: any)=>{
//       const token = localStorage.getItem("token")
//       if (!token) {
//           return <Navigate to="/loding" ></Navigate>
//       }
//         return <Com {...props}/>
//   }
// }

// export default Hoc